package com.shaw.tiger;

public class StudentController {
	private Student student;
	private StudentView view;

	public String getStudentName() {
		return student.getName();
	}

	public void setStudentName(String name) {
		this.student.setName(name);
	}

	public String getStudentRollNo() {
		return student.getRollNo();
	}

	public void setStudentRollNo(String rollNo) {
		this.student.setRollNo(rollNo);
	}

	public StudentController(Student student, StudentView view) {
		this.student = student;
		this.view = view;
	}

	public void updateView() {
		view.printStudentDetails(student.getName(), student.getRollNo());
	}
}
